﻿using Sharp.Portal.Other;

namespace Sharp.Portal.Mvc.List
{
    public partial class SharpList
    {

        /// <summary>
        /// 初始化查询面板
        /// </summary>
        protected virtual void InitQueryPanel()
        {
           foreach(var item in ColumnItems)
            {
                if (item.Hidden)
                {
                    continue;
                }
                if (!item.QueryFeatureOption.HasFlag(QueryFeature.Queryable))
                {
                    continue;
                }

                QueryItems.Add(new QueryItem(item));
            }
        }
        
    }
}
